package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class SubjectExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public SubjectExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSjnoIsNull() {
            addCriterion("sjno is null");
            return (Criteria) this;
        }

        public Criteria andSjnoIsNotNull() {
            addCriterion("sjno is not null");
            return (Criteria) this;
        }

        public Criteria andSjnoEqualTo(String value) {
            addCriterion("sjno =", value, "sjno");
            return (Criteria) this;
        }

        public Criteria andSjnoNotEqualTo(String value) {
            addCriterion("sjno <>", value, "sjno");
            return (Criteria) this;
        }

        public Criteria andSjnoGreaterThan(String value) {
            addCriterion("sjno >", value, "sjno");
            return (Criteria) this;
        }

        public Criteria andSjnoGreaterThanOrEqualTo(String value) {
            addCriterion("sjno >=", value, "sjno");
            return (Criteria) this;
        }

        public Criteria andSjnoLessThan(String value) {
            addCriterion("sjno <", value, "sjno");
            return (Criteria) this;
        }

        public Criteria andSjnoLessThanOrEqualTo(String value) {
            addCriterion("sjno <=", value, "sjno");
            return (Criteria) this;
        }

        public Criteria andSjnoLike(String value) {
            addCriterion("sjno like", value, "sjno");
            return (Criteria) this;
        }

        public Criteria andSjnoNotLike(String value) {
            addCriterion("sjno not like", value, "sjno");
            return (Criteria) this;
        }

        public Criteria andSjnoIn(List<String> values) {
            addCriterion("sjno in", values, "sjno");
            return (Criteria) this;
        }

        public Criteria andSjnoNotIn(List<String> values) {
            addCriterion("sjno not in", values, "sjno");
            return (Criteria) this;
        }

        public Criteria andSjnoBetween(String value1, String value2) {
            addCriterion("sjno between", value1, value2, "sjno");
            return (Criteria) this;
        }

        public Criteria andSjnoNotBetween(String value1, String value2) {
            addCriterion("sjno not between", value1, value2, "sjno");
            return (Criteria) this;
        }

        public Criteria andBnoIsNull() {
            addCriterion("bno is null");
            return (Criteria) this;
        }

        public Criteria andBnoIsNotNull() {
            addCriterion("bno is not null");
            return (Criteria) this;
        }

        public Criteria andBnoEqualTo(String value) {
            addCriterion("bno =", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoNotEqualTo(String value) {
            addCriterion("bno <>", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoGreaterThan(String value) {
            addCriterion("bno >", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoGreaterThanOrEqualTo(String value) {
            addCriterion("bno >=", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoLessThan(String value) {
            addCriterion("bno <", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoLessThanOrEqualTo(String value) {
            addCriterion("bno <=", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoLike(String value) {
            addCriterion("bno like", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoNotLike(String value) {
            addCriterion("bno not like", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoIn(List<String> values) {
            addCriterion("bno in", values, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoNotIn(List<String> values) {
            addCriterion("bno not in", values, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoBetween(String value1, String value2) {
            addCriterion("bno between", value1, value2, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoNotBetween(String value1, String value2) {
            addCriterion("bno not between", value1, value2, "bno");
            return (Criteria) this;
        }

        public Criteria andSjnameIsNull() {
            addCriterion("sjName is null");
            return (Criteria) this;
        }

        public Criteria andSjnameIsNotNull() {
            addCriterion("sjName is not null");
            return (Criteria) this;
        }

        public Criteria andSjnameEqualTo(String value) {
            addCriterion("sjName =", value, "sjname");
            return (Criteria) this;
        }

        public Criteria andSjnameNotEqualTo(String value) {
            addCriterion("sjName <>", value, "sjname");
            return (Criteria) this;
        }

        public Criteria andSjnameGreaterThan(String value) {
            addCriterion("sjName >", value, "sjname");
            return (Criteria) this;
        }

        public Criteria andSjnameGreaterThanOrEqualTo(String value) {
            addCriterion("sjName >=", value, "sjname");
            return (Criteria) this;
        }

        public Criteria andSjnameLessThan(String value) {
            addCriterion("sjName <", value, "sjname");
            return (Criteria) this;
        }

        public Criteria andSjnameLessThanOrEqualTo(String value) {
            addCriterion("sjName <=", value, "sjname");
            return (Criteria) this;
        }

        public Criteria andSjnameLike(String value) {
            addCriterion("sjName like", value, "sjname");
            return (Criteria) this;
        }

        public Criteria andSjnameNotLike(String value) {
            addCriterion("sjName not like", value, "sjname");
            return (Criteria) this;
        }

        public Criteria andSjnameIn(List<String> values) {
            addCriterion("sjName in", values, "sjname");
            return (Criteria) this;
        }

        public Criteria andSjnameNotIn(List<String> values) {
            addCriterion("sjName not in", values, "sjname");
            return (Criteria) this;
        }

        public Criteria andSjnameBetween(String value1, String value2) {
            addCriterion("sjName between", value1, value2, "sjname");
            return (Criteria) this;
        }

        public Criteria andSjnameNotBetween(String value1, String value2) {
            addCriterion("sjName not between", value1, value2, "sjname");
            return (Criteria) this;
        }

        public Criteria andSjcontentIsNull() {
            addCriterion("sjContent is null");
            return (Criteria) this;
        }

        public Criteria andSjcontentIsNotNull() {
            addCriterion("sjContent is not null");
            return (Criteria) this;
        }

        public Criteria andSjcontentEqualTo(String value) {
            addCriterion("sjContent =", value, "sjcontent");
            return (Criteria) this;
        }

        public Criteria andSjcontentNotEqualTo(String value) {
            addCriterion("sjContent <>", value, "sjcontent");
            return (Criteria) this;
        }

        public Criteria andSjcontentGreaterThan(String value) {
            addCriterion("sjContent >", value, "sjcontent");
            return (Criteria) this;
        }

        public Criteria andSjcontentGreaterThanOrEqualTo(String value) {
            addCriterion("sjContent >=", value, "sjcontent");
            return (Criteria) this;
        }

        public Criteria andSjcontentLessThan(String value) {
            addCriterion("sjContent <", value, "sjcontent");
            return (Criteria) this;
        }

        public Criteria andSjcontentLessThanOrEqualTo(String value) {
            addCriterion("sjContent <=", value, "sjcontent");
            return (Criteria) this;
        }

        public Criteria andSjcontentLike(String value) {
            addCriterion("sjContent like", value, "sjcontent");
            return (Criteria) this;
        }

        public Criteria andSjcontentNotLike(String value) {
            addCriterion("sjContent not like", value, "sjcontent");
            return (Criteria) this;
        }

        public Criteria andSjcontentIn(List<String> values) {
            addCriterion("sjContent in", values, "sjcontent");
            return (Criteria) this;
        }

        public Criteria andSjcontentNotIn(List<String> values) {
            addCriterion("sjContent not in", values, "sjcontent");
            return (Criteria) this;
        }

        public Criteria andSjcontentBetween(String value1, String value2) {
            addCriterion("sjContent between", value1, value2, "sjcontent");
            return (Criteria) this;
        }

        public Criteria andSjcontentNotBetween(String value1, String value2) {
            addCriterion("sjContent not between", value1, value2, "sjcontent");
            return (Criteria) this;
        }

        public Criteria andSjscoreIsNull() {
            addCriterion("sjScore is null");
            return (Criteria) this;
        }

        public Criteria andSjscoreIsNotNull() {
            addCriterion("sjScore is not null");
            return (Criteria) this;
        }

        public Criteria andSjscoreEqualTo(String value) {
            addCriterion("sjScore =", value, "sjscore");
            return (Criteria) this;
        }

        public Criteria andSjscoreNotEqualTo(String value) {
            addCriterion("sjScore <>", value, "sjscore");
            return (Criteria) this;
        }

        public Criteria andSjscoreGreaterThan(String value) {
            addCriterion("sjScore >", value, "sjscore");
            return (Criteria) this;
        }

        public Criteria andSjscoreGreaterThanOrEqualTo(String value) {
            addCriterion("sjScore >=", value, "sjscore");
            return (Criteria) this;
        }

        public Criteria andSjscoreLessThan(String value) {
            addCriterion("sjScore <", value, "sjscore");
            return (Criteria) this;
        }

        public Criteria andSjscoreLessThanOrEqualTo(String value) {
            addCriterion("sjScore <=", value, "sjscore");
            return (Criteria) this;
        }

        public Criteria andSjscoreLike(String value) {
            addCriterion("sjScore like", value, "sjscore");
            return (Criteria) this;
        }

        public Criteria andSjscoreNotLike(String value) {
            addCriterion("sjScore not like", value, "sjscore");
            return (Criteria) this;
        }

        public Criteria andSjscoreIn(List<String> values) {
            addCriterion("sjScore in", values, "sjscore");
            return (Criteria) this;
        }

        public Criteria andSjscoreNotIn(List<String> values) {
            addCriterion("sjScore not in", values, "sjscore");
            return (Criteria) this;
        }

        public Criteria andSjscoreBetween(String value1, String value2) {
            addCriterion("sjScore between", value1, value2, "sjscore");
            return (Criteria) this;
        }

        public Criteria andSjscoreNotBetween(String value1, String value2) {
            addCriterion("sjScore not between", value1, value2, "sjscore");
            return (Criteria) this;
        }

        public Criteria andSjstateIsNull() {
            addCriterion("sjState is null");
            return (Criteria) this;
        }

        public Criteria andSjstateIsNotNull() {
            addCriterion("sjState is not null");
            return (Criteria) this;
        }

        public Criteria andSjstateEqualTo(Integer value) {
            addCriterion("sjState =", value, "sjstate");
            return (Criteria) this;
        }

        public Criteria andSjstateNotEqualTo(Integer value) {
            addCriterion("sjState <>", value, "sjstate");
            return (Criteria) this;
        }

        public Criteria andSjstateGreaterThan(Integer value) {
            addCriterion("sjState >", value, "sjstate");
            return (Criteria) this;
        }

        public Criteria andSjstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("sjState >=", value, "sjstate");
            return (Criteria) this;
        }

        public Criteria andSjstateLessThan(Integer value) {
            addCriterion("sjState <", value, "sjstate");
            return (Criteria) this;
        }

        public Criteria andSjstateLessThanOrEqualTo(Integer value) {
            addCriterion("sjState <=", value, "sjstate");
            return (Criteria) this;
        }

        public Criteria andSjstateIn(List<Integer> values) {
            addCriterion("sjState in", values, "sjstate");
            return (Criteria) this;
        }

        public Criteria andSjstateNotIn(List<Integer> values) {
            addCriterion("sjState not in", values, "sjstate");
            return (Criteria) this;
        }

        public Criteria andSjstateBetween(Integer value1, Integer value2) {
            addCriterion("sjState between", value1, value2, "sjstate");
            return (Criteria) this;
        }

        public Criteria andSjstateNotBetween(Integer value1, Integer value2) {
            addCriterion("sjState not between", value1, value2, "sjstate");
            return (Criteria) this;
        }

        public Criteria andSjanswerIsNull() {
            addCriterion("sjAnswer is null");
            return (Criteria) this;
        }

        public Criteria andSjanswerIsNotNull() {
            addCriterion("sjAnswer is not null");
            return (Criteria) this;
        }

        public Criteria andSjanswerEqualTo(String value) {
            addCriterion("sjAnswer =", value, "sjanswer");
            return (Criteria) this;
        }

        public Criteria andSjanswerNotEqualTo(String value) {
            addCriterion("sjAnswer <>", value, "sjanswer");
            return (Criteria) this;
        }

        public Criteria andSjanswerGreaterThan(String value) {
            addCriterion("sjAnswer >", value, "sjanswer");
            return (Criteria) this;
        }

        public Criteria andSjanswerGreaterThanOrEqualTo(String value) {
            addCriterion("sjAnswer >=", value, "sjanswer");
            return (Criteria) this;
        }

        public Criteria andSjanswerLessThan(String value) {
            addCriterion("sjAnswer <", value, "sjanswer");
            return (Criteria) this;
        }

        public Criteria andSjanswerLessThanOrEqualTo(String value) {
            addCriterion("sjAnswer <=", value, "sjanswer");
            return (Criteria) this;
        }

        public Criteria andSjanswerLike(String value) {
            addCriterion("sjAnswer like", value, "sjanswer");
            return (Criteria) this;
        }

        public Criteria andSjanswerNotLike(String value) {
            addCriterion("sjAnswer not like", value, "sjanswer");
            return (Criteria) this;
        }

        public Criteria andSjanswerIn(List<String> values) {
            addCriterion("sjAnswer in", values, "sjanswer");
            return (Criteria) this;
        }

        public Criteria andSjanswerNotIn(List<String> values) {
            addCriterion("sjAnswer not in", values, "sjanswer");
            return (Criteria) this;
        }

        public Criteria andSjanswerBetween(String value1, String value2) {
            addCriterion("sjAnswer between", value1, value2, "sjanswer");
            return (Criteria) this;
        }

        public Criteria andSjanswerNotBetween(String value1, String value2) {
            addCriterion("sjAnswer not between", value1, value2, "sjanswer");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}